<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
    <table>
        <tr>
            <td>原生ServletAPi获取请求数据</td>
            <td><a th:href="@{/servlet?username='张三'&password='12345'}">请求</a></td>
        </tr>
        <tr>
            <td>通过控制器方法的形参获取请求参数</td>
            <td><a th:href="@{/servlet2?username='张三'&password='12345'}">请求</a></td>
        </tr>
        <tr>
            <td>RequestParam注解获取请求数据</td>
            <td><a th:href="@{/servlet3?username='张三'&password='12345'}">请求</a></td>
        </tr>
        <tr>
            <td>@RequestMapping的value属性之占位符</td>
            <td><a th:href="@{/ant/id=1/username=张三}">请求</a></td>
        </tr>
    </table>
</body>
</html>